<template>

   <el-table :data="tableData" style="width: 100%">
      <el-table-column fixed prop="date" label="Date" width="150" />
      <el-table-column prop="name" label="Name" width="120" />
      <el-table-column prop="state" label="State" width="120" />
      <el-table-column prop="city" label="City" width="120" />
      <el-table-column prop="address" label="Address" width="200" />
      <el-table-column prop="zip" label="Zip" width="120" />
      <el-table-column fixed="right" label="操作" min-width="150">
         <template #default>
            <el-button type="danger" size="small" @click="handleClick">
               删除
            </el-button>
            <el-button type="warning" size="small">修改</el-button>
         </template>
      </el-table-column>
   </el-table>
</template>
<script lang="ts" setup>

const tableData = [
   {
      date: '2016-05-03',
      name: 'Tom',
      state: 'California',
      city: 'Los Angeles',
      address: 'No. 189, Grove St, Los Angeles',
      zip: 'CA 90036',
      tag: 'Home',
   },
   {
      date: '2016-05-02',
      name: 'Tom',
      state: 'California',
      city: 'Los Angeles',
      address: 'No. 189, Grove St, Los Angeles',
      zip: 'CA 90036',
      tag: 'Office',
   },
]

const handleClick = () => {
   console.log('click')
}
</script>